﻿function dialogAjaxDoneWithRefreshParentDialog(json) {
    DWZ.ajaxDone(json);
    //debugger;
    if (json.statusCode == DWZ.statusCode.ok) {
        if (json.dialogId) {
            $.pdialog.reload(json.dialogUrl, { dialogId: json.dialogId, type: "GET" });
        }
        if (json.closeCurrent) {
            $.pdialog.closeCurrent();
        }
    }
    return false;
}

function ajaxRefreshDialog(json) {
    DWZ.ajaxDone(json);
    //debugger;
    if (json.statusCode == DWZ.statusCode.ok) {
        if (json.dialogId) {
            $.pdialog.reload(json.dialogUrl, { dialogId: json.dialogId, type: "GET" });
        }
    }
    return false;
}